#include "common.h"
#include <iostream>

struct Package
{
    Data data;
    size_t count = 0;

    Package(Data data, size_t count):data(data),count(count) {}

    Package():data(nullptr),count(0) {}

    void flush() {
        this->data = nullptr;
        this->count = 0;
    }

    bool isNull() {
        return data == nullptr;
    }
};
